import express from 'express';
import { info } from "../controller/index";
const router = express.Router();

/* GET home page. */
router.get('/', function (req, res, next) {
  res.render('index', { title: 'Express' });
});
// 显示socket页面
router.get('/socket', function (req, res, next) {
  res.render('socket', {});
});
// 获取信息
router.get('/info', info);

export default router;
